package 编程;

public class Test2 {
    public static void main(String[] args) {
        String s1="abc";
        String  s2="abc";
        String s3 = new String("abc");
        System.out.println(s2==s1);
        System.out.println(s1.hashCode());
        System.out.println(s3.hashCode());
        System.out.println(s1==s3);

    }
}
